import cv2

image = cv2.imread("cat_dog.jpg")
image1 = cv2.copyMakeBorder(image, 10, 10, 10, 10, cv2.BORDER_CONSTANT, None, value=0)
image2 = cv2.copyMakeBorder(image, 100, 100, 50, 50, cv2.BORDER_REFLECT)

cv2.imshow('Image1', image1)
cv2.imshow('Image2', image2)
cv2.waitKey(0)
cv2.destroyAllWindows()